-
Notifications
You must be signed in to change notification settings - Fork 38.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uses offset instead of line number in JSONSyntaxError #97990
Uses offset instead of line number in JSONSyntaxError #97990
Conversation
Welcome @AlexanderYastrebov! |
Hi @AlexanderYastrebov. Thanks for your PR. I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Thanks for your pull request. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please follow instructions at https://git.k8s.io/community/CLA.md#the-contributor-license-agreement to sign the CLA. It may take a couple minutes for the CLA signature to be fully registered; after that, please reply here with a new comment and we'll verify. Thanks.
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
904f65f
to
f7b6217
Compare
f7b6217
to
7be7cc9
Compare
Thanks for your pull request. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please follow instructions at https://git.k8s.io/community/CLA.md#the-contributor-license-agreement to sign the CLA. It may take a couple minutes for the CLA signature to be fully registered; after that, please reply here with a new comment and we'll verify. Thanks.
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
7be7cc9
to
b580657
Compare
} | ||
|
||
type JSONSyntaxError struct { | ||
Line int |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you leave Line here with a note that it isn't populated currently?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done (though I think it will only create confusion for the one who would like to use it).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah I can see going either way, I was mostly thinking in terms of not breaking anyone using this public type at compile time. I can see people thinking that'd actually be a good thing. In this case I lean towards keeping it, but I don't feel super strongly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I removed it
b580657
to
1056fce
Compare
/assign @lavalamp |
/ok-to-test (just remove the hold if you're happy with it, I put it on in case you feel strongly & want to remove the Line field) |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: AlexanderYastrebov, lavalamp The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
1056fce
to
4b422f9
Compare
/retest |
/lgtm |
/unhold |
What type of PR is this?
/kind bug
What this PR does / why we need it:
Uses stream offset instead of incorrectly calculated line number of JSON syntax error.
Which issue(s) this PR fixes:
Fixes #97651
Special notes for your reviewer:
Does this PR introduce a user-facing change?:
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: